<form class = "ajax-form" action = "{:url('')}" method="post">
    <div class = "form-group row">
        <label class = "col-sm-2 col-xs-12">用户名</label>
        <div class = "col-sm-10 col-xs-12">
            <input type="text" name="username" class="form-control" value = "{$vo.username|default=''}" placeholder="请填写用户名"/>
        </div>
    </div>
    <div class = "form-group row">
        <label class = "col-sm-2 col-xs-12">邮件</label>
        <div class = "col-sm-10 col-xs-12">
            <input type="text" name = "email" class = "form-control" value = "{$vo.email|default=''}" placeholder="请填写邮件"/>
        </div>
    </div>
    <div class = "form-group row">
        <label class = "col-sm-2 col-xs-12">手机</label>
        <div class = "col-sm-10 col-xs-12">
            <input type="text" name="mobile" class = "form-control" value = "{$vo.mobile|default=''}" placeholder="请填写手机"/>
        </div>
    </div>
    <div class = "form-group row">
        <label class = "col-sm-2 col-xs-12">状态</label>
        <div class = "col-sm-10 col-xs-12">
            <select name = "valid" class = "form-control">
                <option value = "1" {if condition="isset($vo.valid) and $vo.valid eq 1"}selected{/if}>启用</option>
                <option value = "2" {if condition="isset($vo.valid) and $vo.valid eq 2"}selected{/if}>禁用</option>
            </select>
        </div>
    </div>
    {if isset($vo['id'])}<input type='hidden' value='{$vo.id}' name='id'>{/if}
    <div class = "form-group user-btn-group">
        <button class="btn btn-success" type='submit'>保存</button>
        <button class="btn btn-warning" type='button' data-confirm="确定要取消数据保存吗？" data-dismiss="modal">取消</button>
    </div>
</form>